﻿using DogModel;
using IDogRepository;
using IDogService;
using Microsoft.Extensions.Logging;
using HelperCommon;

namespace DogService
{
    public class UserInfoService : BaseService<UserInfo>, IUserInfoService
    {
        protected readonly IUserInfoRepository userInfoRepository;

        //protected readonly ILogger<UserInfoService> Nlog;
        public UserInfoService(IUserInfoRepository _userInfoRepository, ILogger<UserInfoService> logger) : base(_userInfoRepository, logger)
        {
            userInfoRepository = _userInfoRepository;
            //Nlog = logger;
        }

        public UserInfo GetByName(UserInfo user)
        {
            return userInfoRepository.GetByName(user);
        }
    }
}